module resistor(p,m)
inout p;	// Positive Terminal
inout m;	// Negative Terminal

electrical p,m;	// Define ports as electrical

parameter real rnom = 1.0;	// define the resistance with a default value of 1.0

analog begin
	V(p,m) <+ I(p,m) * rnom;
end

endmodule